************************************************************************
* Güneş Murat Tezcür, "A Path out of Patriarchy? Political               
* Agency and Social Identity of Women Fighters" Perspectives on Politics.
* Last modified: September 21, 2018 
************************************************************************


* STATA Code to replicate statistical analyses in Appendix E  

* Dataset: KIMDistrictv2.dta 

* Figure E.1. Histogram of the Dependent Variable 

histogram femalerecruitsweupd, normal width(1.25)

* Table E.2. Model I - ZINB (reduced sample with 10 independent variables) 

zinb femalerecruitsweupd recruitsweupd_l deathsupd literacygendergap fertility 
poplog ruralpopcha ruralpop kurdvote kurdpop rebellion,inflate(recruitsweupd_l 
deathsupd ruralpopcha kurdvote) vce(cluster id) nolog

estat ic

* Figure E.3 

sum literacygendergap, d

margins, at(literacygendergap=(62 84.2 93.5)) atmeans

marginsplot

* Table E.2. Model II - ZINB (full sample with 8 independent variables)

zinb femalerecruitsweupd recruitsweupd_l deathsupd literacygendergap poplog 
ruralpop kurdvote kurdpop rebellion,inflate(recruitsweupd_l deathsupd kurdvote) 
vce(cluster id) nolog

estat ic 

* Figure E.2 

margins, at(literacygendergap=(62 84.2 93.5)) atmeans

marginsplot

* Table E.3. Model III - NB 

nbreg femalerecruitsweupd recruitsweupd_l deathsupd literacygendergap poplog 
ruralpop kurdvote kurdpop rebellion, vce(cluster id) nolog

estat ic
